#ifndef MY_RSA_TYPES_H
#define MY_RSA_TYPES_H



/* Useful definitions */
#ifndef FALSE
#define FALSE               0
#endif
#ifndef TRUE
#define TRUE                1
#endif

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif
/*******************************************************************************
 * Type Definitions
 *******************************************************************************/
typedef unsigned char           kal_uint8;
typedef signed char             kal_int8;
typedef char                    kal_char;
typedef unsigned short          kal_wchar;

typedef unsigned short int      kal_uint16;
typedef signed short int        kal_int16;

typedef unsigned int            kal_uint32;
typedef signed int              kal_int32;

typedef char					S8;			
typedef char					*PS8;		
typedef unsigned char  		U8;			
typedef unsigned char		*PU8;		

typedef unsigned short 		pBOOL; 		

typedef short int	S16; 		
typedef short int	*PS16; 		
typedef unsigned short int	U16; 		
typedef unsigned short int	*PU16;		
				
typedef int			S32;		
typedef int			*PS32;		
typedef unsigned int		U32;		
typedef unsigned int		*PU32;



typedef signed char         int8;
typedef unsigned char	    uint8;

typedef short int           int16;
typedef unsigned short int  uint16;

//typedef int                 int32;
//typedef unsigned int        uint32;

typedef int8		         kal_bool;

//typedef int8		         BOOL;




#endif  //MY_RSA_TYPES_H

